<?php
namespace app\index\model;

/**
 * 会员模型
 * Class Menu
 * @package app\index\model
 */
class User extends Base
{
    protected $autoWriteTimestamp = true;//开启自动添加时间戳

    //验证帐号是否存在
    public function checkName($tel){
        return $this->where("tel",$tel)->find();
    }

    //验证帐号是否存在
    public function cookieName($cookie_key){
        return $this->where("cookie_key",$cookie_key)->find();
    }

}